package cn.wen.forum.constants;

/**
 * @ClassName ForumConstant
 * @Author By wen
 * @Description 相关常量类
 * @Date 2023/8/7 11:07
 * @Version 1.0
 */
public class ForumConstant {

    /** 用户浏览记录 */
    public static final String USER_BROWSING_HISTORY = "user_browsing_history_";

    /** post_id redis key*/
    public static final String POST_ID = "postID_";

    /** 等级前缀*/
    public static final String LV = "LV_";

    /** 用户信息 redis key*/
    public static final String USER_INFO = "user_info_";

    /** 活跃用户信息（每日获得经验值的用户） redis key*/
    public static final String USER_ACTIVE_INFO = "user_active_info";

    /** 点赞量 redis key*/
    public static final String APPROVAL_KEY = "approval";
    /** 收藏量 redis key*/
    public static final String COLLECT_KEY = "collect";
    /** 浏览量 redis key*/
    public static final String PAGEVIEW_KEY = "pageview";


    /** 每日登录的经验值 */
    public static final Integer LOGIN_EMPIRICAL = 2;

    /** 发帖的经验值 */
    public static final Integer PUBLISH_EMPIRICAL = 10;

    /** 评论的经验值 */
    public static final Integer REVIEW_EMPIRICAL = 3;



    /** 增加经验值类型 评论 */
    public static final String ADD_TYPE_REVIEW = "R";

    /** 增加经验值类型 登陆*/
    public static final String ADD_TYPE_LOGIN = "L";

    /** 增加经验值类型 发布 */
    public static final String ADD_TYPE_PUBLISH = "P";

    /** 增加经验值类型 被评论 */
    public static final String ADD_TYPE_REVIEW_Y = "R_Y";

    /** 增加经验值类型 被点赞 */
    public static final String ADD_TYPE_APPROVAL_Y = "A_Y";
}
